import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;

public class test {
    public static void main(String[] args) {
        try(FileOutputStream outputStream = new FileOutputStream("outputtest.txt");
            FileInputStream inputStream = new FileInputStream("C:\\Users\\win\\Desktop\\热爱105℃的你（冰糖扇宝版）\\使用规约.txt");) {
            byte[] bytes = new byte[10];
            int tmp;
            while ((tmp = inputStream.read(bytes)) != -1){
                outputStream.write(bytes,0,tmp);
            }
        }catch (IOException e){
            e.printStackTrace();
        }
    }
}
